import { combineReducers } from 'redux'
import { articleReducer } from './article'
import { channelReducer } from './channel'
import { searchReducer } from './search'
import { userRducer } from './user'

// 合并模块
const rootReducer = combineReducers({
  user: userRducer,
  channel: channelReducer,
  search: searchReducer,
  article: articleReducer,
})

export default rootReducer
